<template>
	<view>
		<view class="store-list">
        <view class="store-item" v-for="(item,index) in store_list" :key="item.id">
            <view class="flex flex-row bob p-24">
                <view class="flex-grow-0">
                    <image class="bi" :src="item.logo" style="width:100upx;height:100upx;display:block"></image>
                </view>
                <view class="flex-grow-1" style="padding: 0 24upx">
                    <view class="text-more" style="padding-top:2upx;margin-bottom: 8upx;">{{item.name}}</view>
                    <view class="flex fs-sm" style="color: #888;">
                        <view style="margin-right: 30upx">商品数:{{item.goods_count}}</view>
                        <view v-if="__is_sales">已售:{{item.sell_goods_count}}</view>
                    </view>
                </view>
                <view class="flex-grow-0 flex-y-center">
                    <form @submit="$emit('_formIdSubmit',$event)" data-type="navigate" :data-url="'/store/shop/shop?store_id='+item.id" reportSubmit="true">
                        <button formType="submit" id="_formIdSubmit" class="_formIdSubmit">
                            <view class="store-btn">进店逛逛</view>
                        </button>
                    </form>
                </view>
            </view>
            <view class="store-goods-list">
                <scroll-view scrollX style="width:100%;white-space: nowrap;" v-if="item.goods_list&&item.goods_list.length">
                    <navigator class="store-goods-item" :url="value.page_url" v-for="(value,key) in item.goods_list" :key="value.id">
                        <image :src="value.cover_pic" style="width: 220upx;height: 220upx;"></image>
                        <view class="text-more fs-sm" v-if="param.price==1">￥{{value.price}}</view>
                    </navigator>
                </scroll-view>
                <view style="padding: 24upx;color: #888;font-size: 9pt;text-align: center;" v-else>暂无商品</view>
            </view>
        </view>
    </view>
	</view>
</template>

<script>var myVue = {};
	export default {
		props:['param','store_list','template_index','__wxapp_img'],
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped>

</style>
